package com.viknix.threadpool.manager.client.exception;

/**
 * @Author: Dongqi
 * @Date: 2021/11/24 10:35
 * @Version 1.0
 * @Description:
 */
public class TpmConnectionFailureException extends RuntimeException {

    private final String serverAddr;

    public TpmConnectionFailureException(String serverAddr, String message) {
        super(message);
        this.serverAddr = serverAddr;
    }

    public TpmConnectionFailureException(String serverAddr, String message,
                                         Throwable cause) {
        super(message, cause);
        this.serverAddr = serverAddr;
    }

    public String getServerAddr() {
        return serverAddr;
    }
}
